home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of MacTutor - S…e Code for Volumes 1 to 5
/
The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin
/
Source Code
/
#51 (Dec 89)
/
LISP sources
/
listing 06
< prev
next >
Wrap
Text File
|
1988-10-23
|
651b
|
34 lines
Welcome to Allegro CL Version 1.2!
?
TOWEROFHANOI
NIL
EXIST
HANOI
MOVEDISK
MOVETOWER
ADDFIRST
GETANDREMOVEFIRST
?
> Continuable Error: Attempt to globally define object function HANOI
> While executing: FSET-GLOBALLY
> If Continued: Bind HANOI in the root object
> Type Command-/ to continue, Command-. to abort.
1 > Continuing...
HANOI
> Continuable Error: Attempt to globally define object function MOVEDI
SK
> While executing: FSET-GLOBALLY
> If Continued: Bind MOVEDISK in the root object
> Type Command-/ to continue, Command-. to abort.
1 > Continuing...
MOVEDISK
? (Hanoi 3 "A" "B" "C")
A -> B
A -> C
B -> C
A -> B
C -> A
C -> B
A -> B
NIL
?